<!DOCTYPE html>
<html>
<head>
    <title>应用类型Function</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
        function sum(num1, num2){
            return num1 + num2;
        }

        function callSum1(num1, num2){
            return sum.apply(this, arguments);
        }

        function callSum2(num1, num2){
            return sum.apply(this, [num1, num2]);
        }

        alert(callSum1(10, 10));
        alert(callSum2(20, 20));
    </script>
</head>
<body>
    <p>应用类型Function</p>
</body>
</html>